package com.daniu101.productbargan.controller;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class IndexController {

    //默认控制器 去首页
    @RequestMapping(value = "/",method = RequestMethod.GET)
    public ModelAndView hello(){
        ModelAndView mav = new ModelAndView();
        mav.setViewName("index");

        return mav;
    }

}
